package com.fjec.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 005.秒杀活动礼物表
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
@TableName("biz_activity_seckill_gift")
@Data
public class BizActivitySeckillGift implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 秒杀活动Id
     */
    @TableField("SeckillId")
    private Long seckillId;

    /**
     * 礼物Id
     */
    @TableField("GiftId")
    private Long giftId;

    /**
     * 秒杀数量
     */
    @TableField("SeckillNum")
    private Integer seckillNum;

    /**
     * 购买数量
     */
    @TableField("BuyNum")
    private Integer buyNum;

    /**
     * 更新版本号 更新数据版本号
     */
    @TableField("UpdateVer")
    @Version
    private Integer updateVer;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return "BizActivitySeckillGift{" +
            "id=" + id +
            ", giftId=" + giftId +
            ", seckillNum=" + seckillNum +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
